# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-freechaf
pkgver=0_git20200317
pkgrel=0
_commit="7076096c4e2d93acccab1b2429a6ed8530e98925"
pkgdesc="Fairchild ChannelF / Video Entertainment System emulator for libretro"
url="https://github.com/libretro/FreeChaf"
arch="all"
license="GPL-3.0-or-later"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/FreeChaF/archive/$_commit.tar.gz"
builddir="$srcdir/FreeChaF-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 freechaf_libretro.so "$pkgdir"/usr/lib/libretro/freechaf_libretro.so
}

sha512sums="5e4d302b260a9aa94f2d578bff115954e549c304a264f4d24e9b41ec6ae7762c5b6e47ed858f5457b37dcc770068e9f3cb6aef8ed09343d2aa05015a886653a1  libretro-freechaf-7076096c4e2d93acccab1b2429a6ed8530e98925.tar.gz"
